﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" xmlns:local="clr-namespace:SilverSynth.DemoUI" x:Class="SilverSynth.DemoUI.MainPage"
    d:DesignWidth="640" d:DesignHeight="480" Width="700" Height="425">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <Button Content="Add Oscillator" Width="100" HorizontalAlignment="Left" Click="AddOscillatorClick"/>
            <Button Content="Play" Width="100" HorizontalAlignment="Left" Margin="5,0,0,0" Click="PlayClick"/>
            <Button Content="Clear" Width="100" HorizontalAlignment="Left" Margin="5,0,0,0" Click="ClearClick"/>
            <TextBlock Text="Presets:" Margin="188 5 5 0"/>
            <ComboBox x:Name="presetCombo" Width="150">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Name}" />
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
        </StackPanel>
        <ScrollViewer Margin="0,15,0,0" Grid.Row="1" x:Name="LayoutRoot" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Hidden">
            <StackPanel Margin="0,0,0,0" Orientation="Horizontal" x:Name="oscillatorContainer">


            </StackPanel>
        </ScrollViewer>
        <MediaElement x:Name="media" AutoPlay="False"/>
    </Grid>
</UserControl>
